﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace NTerm
{
    /// <summary>
    /// Internal class
    /// </summary>
    internal class NTermTextWriter : TextWriter
    {
        public NTermTextWriter()
            : base()
        {
        }

        public NTermTextWriter(IFormatProvider formatProvider)
            : base(formatProvider)
        {

        }

        public override Encoding Encoding
        {
            get { return ASCIIEncoding.ASCII; }
        }

        public override void Write(char value)
        {
            NTerminal.Write(value);
        }
    }
}
